package CreationModel.FactoryMode.FactoryMethodModel;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-11-22 18:30:00
 */
public class test {
    public static void main(String[] args) {

        IFactory factory = new AddFactory();

        Operation operation = factory.createOperation();
        operation.setNumberA(2);
        operation.setNumberB(1);
        System.out.println(operation.getResult());
    }



}
